<?php
namespace app\blog\controllers;

use froyo\cherry\Base\BaseController;

class Index extends BaseController{

	public function actionIndex(){
		$class = '\\app\\blog\\models\\Post';
		$m = new $class();
		$res = $m->getQuery()->where('post_id','>',1)->limit('4')->getAll();

		return $this->render('index',['items'=>$res]);
	}
}